package DigitalNetwork;

import java.io.*;

/**
 * Egy parancs beolvasasat megvalosito osztaly, a standard bemenetrol
 * <p>
 *
 * </p>
 *
 * @author Ableda Peter
 * @author Andrasi Istvan
 * @author Kamaras Karoly
 * @author Pora Szilard
 *
 * @version 1.0 Build 2011.04.17.
 */
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
public class Input {

	/** Bemeneti stream. */
	private static BufferedReader in;

	/**
	 * Beolvas egy sort a bementrol, majd visszaadja visszateresi ertekkent.
	 * @retun in.readLine() A bemeneten talalhato parancs beolvasasa.
	 */
	//==========================================================================
	public static String readInput() {
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
			return in.readLine();
		} catch (IOException e) {
			System.out.println("<< Error! An error has occurred"
				+ " in the Input.readInput() method, will exit.\n<<");
			e.printStackTrace();
			System.exit(1);
		}
		return null;
	}
	//==========================================================================
}
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

